//
//  PersonHomeTableViewCell.m
//  B2C
//
//  Created by 李小龙 on 2017/7/27.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import "PersonHomeTableViewCell.h"

@implementation PersonHomeTableViewCell

+ (instancetype)personHomeCellWithTableView:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath {
    NSString *identifier = @"";
    NSInteger index = 0;
    switch (indexPath.section) {
        case 0:
            identifier = @"personHomeCellFirstIdentifier";
            index = 0;
            break;
        case 1: case 2: case 3:
            identifier = @"personHomeCellSecondIdentifier";
            index = 1;
            break;
        default:
            break;
    }
    
    PersonHomeTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (!cell) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"PersonHomeTableViewCell" owner:self options:nil] objectAtIndex:index];
    }
    return cell;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
